import type { LoginInfo } from '#/login'

// 用户登录
export function login(_data: LoginInfo) {
  return Promise.resolve({
    code: 0,
    message: 'ok',
    data: {
      user: {
        id: 1,
        name: '管理员',
        username: 'admin',
        type: 'admin',
        created_at: '2024-09-13 13:41:56'
      },
      token:
        'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJ1c2VybmFtZSI6IueuoeeQhuWRmCIsInR5cGUiOiJhZG1pbiIsImV4cCI6MTcyNjIxOTYzMH0.VD1Yf35fwrO7SnlIdKNWMiCIzQqlDWhLOL2S5tZAAHQ'
    },
    trace_id: null
  })
}
